package com.lsb.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author liusibo
 * @since 2021-06-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;
    //用户id
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //学号/工号
    private String username;
    //用户密码
    private String password;
    //真实姓名
    private String realName;
    //手机号码
    private String telephoneNumber;
    //身份证号
    private String identityNumber;
    //角色
    private String role;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    //修改时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    //逻辑删除字段，0-用户存在，1-用户已经删除
    private Integer logicDelete;

}
